package com.restcloud.pojo.Public;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class Value {

    public Value() {
    }

    public Value(String value) {
        this.value = value;
    }

    public Value(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public Value(Value description) {
        this.description = description;
    }

    @XmlAttribute(name = "use")
    private String use;

    @XmlAttribute(name = "type")
    private String type;

    @XmlAttribute(name = "value")
    private String value;

    @XmlElement(name = "id")
    private Id id;

    @XmlElement(name = "item")
    private Code item;

    @XmlElement(name = "description")
    private Value description;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Id getId() {
        return id;
    }

    public void setId(Id id) {
        this.id = id;
    }

    public Code getItem() {
        return item;
    }

    public void setItem(Code item) {
        this.item = item;
    }

    public Value getDescription() {
        return description;
    }

    public void setDescription(Value description) {
        this.description = description;
    }
}
